﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Ongoal.Quotation.Service.Model.basemodel
{
    /// <summary>
    /// 数据表信息实体
    /// </summary>
    public class T_TableInfo
    {
        //主键
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int ID { get; set; }
        [SugarColumn(IsNullable = false,ColumnDescription = "所属数据源")]
        //所属数据源
        public int SourceID { get; set; }
        //名称
        [SugarColumn(IsNullable = false, ColumnDescription = "名称")]
        public string TableText { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "代码")]
        //代码
        public string TableCode { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "分表策略")]
        //分表策略
        public int PartitionType { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "复制策略")]
        //复制策略
        public int CopyType { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "描述")]
        //描述
        public string Remark { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "创建人")]
        //创建人
        public int CreatorID { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
        //创建时间
        public DateTime CreateTime { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "修改人")]
        //修改人
        public int ModifyID { get; set; }
        //修改时间
        [SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
        public DateTime ModifyTime { get; set; }
        //是否为树结构
        public int Islevel { get; set; }
    }
}
